import { Link, useParams } from "react-router-dom"
const My = () =>{
    const params = useParams()
    const id = params.id
    const name = params.name
    return <div>
        <Link to="/login">登录</Link>
        <div>这里是我的页面,id是{id},名字是{name}</div>
    </div>
}
export default My